package main

import "fmt"

/*
panic: assignment to entry in nil map

goroutine 1 [running]:
main.main()

	D:/giteeWorks/go-stduy/七、Golang 指针/大地/demo04.go:8 +0x2c
*/
func main() {

	// panic 需要分配空间
	var userinfo map[string]string = make(map[string]string)
	userinfo["username"] = "array"
	fmt.Println(userinfo)
	fmt.Println(userinfo["username"])
}
